package com.gome.base;

import com.gome.vue4j.core.AbstractVue4jComponent;
import com.gome.vue4j.core.FXMLPath;
import javafx.fxml.FXML;

/**
 * 条件渲染,事件绑定
 */
@FXMLPath("/base/l4-view.fxml")
public class L4IfComponent extends AbstractVue4jComponent {
    @FXML
    boolean flag = true;

    @FXML
    public void toggle(){
        flag = !flag;
        update();
    }
}
